#encoding:UTF-8

'''
Created on Mar 2, 2014

@author: Wu Botao
'''

import time
 
def timeit(func):
    def wrapper():
        start = time.clock()
        func()
        end =time.clock()
        print 'used:', end - start
    return wrapper
 
@timeit
def foo():
    print 'in foo()'
 
foo()